import 'package:flutter/material.dart';

import 'home.dart';

class IntroducePage extends StatelessWidget {
  const IntroducePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('audio_waveform'),
        elevation: 1,
        centerTitle: true,
        shadowColor: Colors.grey,
      ),
      body: Column(
        children: [
          const SizedBox(height: 20),
          Image.asset(
            'assets/images/banner.png',
            fit: BoxFit.fitWidth,
          ),
          const SizedBox(height: 20),
          const Text('Audio Waveform',textScaleFactor: 2),
          const SizedBox(height: 20),
          const Text('Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms.',),
          const SizedBox(height: 20),
          const Text('使用此插件可以生成波形，同时以给定编码器支持的任何文件格式或音频文件录制音频。我们可以使用手势滚动波形或在播放音频时寻找任何位置以及设置波形样式。',),
          const SizedBox(height: 20),
          const Text('dependencies:audio_waveforms: ^1.0.4',),
          const SizedBox(height: 20),
          const Text('https://pub.dev/packages/audio_waveforms',),
          const Expanded(child: SizedBox()),
          SafeArea(
              child: Center(
            child: ElevatedButton(
              onPressed: () {
                Navigator.push(context,MaterialPageRoute(builder: (_)=> const Home()));
              },
              child: const Text('聊天界面案例'),
            ),
          ))
        ],
      ),
    );
  }
}
